<template>
  <div>
    <GoodsList />
  </div>
</template>
<script>
import GoodsList from "@/views/components/GoodsList";
export default {
  components: {
    GoodsList,
  },
  mounted() {
    if(this.userInfo != null){
        this.$store.commit("setNavStatus", 2);
    }
    else{
        this.$store.commit("setNavStatus", 1);
    }
  },
  computed: {
    userInfo() {
      return this.$store.getters.getUserInfo;
    },
  },
  // destroyed(){
  //   this.$store.commit("init");
  // },
};
</script>